package com.example.api.dao;

import com.example.api.model.entity.Commodity;

import java.util.List;

public interface CommodityDao {

    int deleteByPrimaryKey(Integer id);

    int insert(Commodity record);

    int insertSelective(Commodity record);

    Commodity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Commodity record);

    int updateByPrimaryKey(Commodity record);

    List<Commodity> findAll(String name);

    Commodity selectByName(String name);

}